//
//  DECXUploadIPictureItem.h
//  DECXInStore
//
//  Created by 程强 on 15/12/9.
//  Copyright © 2015年 程强. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DECXManager.h"
#import "DECXPictureFile.h"

typedef void(^SelectMediaTypeBlock)(MediaType type);

@interface DECXUploadIPictureItem : UIView<UIActionSheetDelegate>
@property (strong, nonatomic) UIImageView *picture;
@property (strong, nonatomic) UIImageView *logo;
@property (strong, nonatomic) UIButton *actionBtn;
@property (strong, nonatomic) UIActivityIndicatorView *activityIndicator;
@property (copy, nonatomic) SelectMediaTypeBlock selectMediaBlock;
@property (nonatomic) UploadPictureControllerType pictureType;
- (void)startUpload:(UIImage *)oriImage thumImage:(UIImage *)thumImage success:(void(^)(DECXPictureFile *file))successBlock
            failure:(void(^)(NSString *msg))failureBlock complete:(void(^)())completeBlock;
- (void)click:(UIButton *)btn;
@end
